package com.trkj.dao.wdm;

import java.util.List;

import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.trkj.pojo.Duty;

public interface DutyDAO extends CrudRepository<Duty, Long>{
	@Query("from Duty r ")
	public List<Duty> queryByNaPage(Pageable p);
		
	@Query("from Duty f where f.dutyName like?1")
	public List<Duty> query_By_idorname(String text,Pageable p);
	@Query("select count(f) from Duty f where f.dutyName like?1")
	public long count(String string);
}
